var e = require;
var t = module;
cc.Class({
    extends: cc.Component,
    properties: {},
    onLoad: function() {
        this.node.on(cc.Node.EventType.TOUCH_START, LevelManager.Instance.onRaycastTouchDown, LevelManager.Instance, !0);
        this.node.on(cc.Node.EventType.TOUCH_END, LevelManager.Instance.onRaycastTouchUp, LevelManager.Instance, !0);
        this.node.on(cc.Node.EventType.TOUCH_CANCEL, LevelManager.Instance.onRaycastTouchUp, LevelManager.Instance, !0)
    },
    onDestroy: function() {
        this.node.off(cc.Node.EventType.TOUCH_START, LevelManager.Instance.onRaycastTouchDown, LevelManager.Instance, !0);
        this.node.off(cc.Node.EventType.TOUCH_END, LevelManager.Instance.onRaycastTouchUp, LevelManager.Instance, !0);
        this.node.off(cc.Node.EventType.TOUCH_CANCEL, LevelManager.Instance.onRaycastTouchUp, LevelManager.Instance, !0)
    }
})